﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WindowsFormsView;

namespace WindowsFormsPresenter.CountryRegion
{
    public class CountryRegionsPresenter : Presenter<ICountryRegionsView>
    {
        public CountryRegionsPresenter(ICountryRegionsView view)
            : base(view)
        {
        }

        public void Display()
        {
            View.CountryRegions = Model.GetCountryRegions();
        }

        public void DisplayByPage(int currentPage)
        {
            View.CountryRegions = Model.GetCountryRegionsByPage(currentPage);
        }

        public int GetTotalPage()
        {
            return Model.GetTotalPageFromCountryRegion();
        }

        public void DisplayActive()
        {
            View.CountryRegions = Model.GetCountryRegionsActive();
        }
    }
}
